﻿using System;
using Volo.Abp.MultiTenancy;

namespace Xms.Abp.Authorization;

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class PermissionDefinitionAttribute : Attribute
{
    public Type LocalizationResource { get; set; }

    public MultiTenancySides MultiTenancySides { get; set; }

    public PermissionDefinitionAttribute(Type localizationResource, MultiTenancySides multiTenancySides = MultiTenancySides.Both)
    {
        LocalizationResource = localizationResource;
        MultiTenancySides = multiTenancySides;
    }
}
